package org.jeecg.modules.utils.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.utils.entity.WmsBaseDocument;

import java.util.List;

/**
 * @Description: 客户信息表
 * @Author: jeecg-boot
 * @Date:   2023-07-21
 * @Version: V1.0
 */
public interface WmsBaseDocumentMapper extends BaseMapper<WmsBaseDocument> {
    /**
     * 修改文档状态为已提交
     * @param id
     * @param tableName
     * @return
     */
    int updateDocumentToCommitted(@Param("id") String id,@Param("tableName") String tableName);

    /**
     * 修改文档状态为已完成
     * @param id
     * @param tableName
     * @return
     */
    int updateDocumentToCompleted(@Param("id")String id, @Param("tableName")String tableName);
    /**
     * 修改文档状态
     * @param id
     * @param tableName
     * @return
     */
    int updateDocumentStatus(
         @Param("id")String id,
         @Param("tableName")String tableName,
         @Param("status") String status
    );
}
